package com.wtb.javatool.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wtb.javatool.constant.evaluation.AssetsType;
import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import java.util.Date;

@Data
@TableName("assets")
public class Assets {

    @TableId(value = "id", type = IdType.AUTO)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @TableField("document_id")
    private Long documentId;

    @TableField("catalog_id")
    private Long catalogId;

    @TableField("name")
    private String name;

    @TableField("create_time")
    private Date createTime;

    @TableField("creator_id")
    private Long creatorId;

    @TableField("type")
    private AssetsType type;

    @TableField("order")
    private Integer order;

    @TableField("content")
    private String content;


}

